package com.it.sun.learning001.lifecycle;

import cn.hutool.log.Log;
import cn.hutool.log.LogFactory;
import org.springframework.beans.factory.InitializingBean;

import javax.annotation.PostConstruct;
import javax.annotation.Resource;

/**
 * @ClassName com.it.sun.learning001.lifecycle.InitializingBeanImpl
 * @Author sunmannian
 * @Date 2021/6/15 15:58
 * @Version V1.0
 * Description  <请输入一句话描述该类功能>
 * Copyright (C) 北京中电兴发科技有限公司  since 2021/6/15
 */
public class InitializingBeanImpl implements InitializingBean {

	static Log log = LogFactory.get(InitializingBeanImpl.class);

	@Override
	public void afterPropertiesSet() throws Exception {
		log.info("InitializingBean=====> 接口初始化");
	}

	@Resource
	@PostConstruct
	public void init() {
		log.info("PostConstruct=====> 注解初始化");
	}


	public void initMethod() {
		log.info("initMethod=====> 初始画方法初始化");
	}
}



